﻿using NightskyMimic.Core;
using NightskyMimic.Domain;
using NightskyMimic.Util;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Main
{
    public static class LittleGame
    {
        public static void Execute()
        {
            Strategy ai = new AlphaBeta();

            Deck maxDeck = new Deck(new List<Card>());
            Zone maxZone = new Zone(maxDeck);

           maxZone.Creatures.Add(new Creature("1", 1, 4, 5));

            Player max = new Player("max", maxZone, ai);

            Deck minDeck = new Deck(new List<Card>());
            Zone minZone = new Zone(minDeck);

            minZone.Creatures.Add(new Creature("2", 1, 2, 2));

            Player min = new Player("min", minZone, ai);

            DateTime beginning = DateTime.Now;
            min.Zone.Creatures[0].Tapped = true;
            List<Block> x = ai.GenerateBlockActions(max, min, new List<Attack>(){new Attack(minZone.Creatures[0])});

            DateTime end = DateTime.Now;
            Console.WriteLine(end - beginning);
            Console.ReadKey();
        }
    }
}
